import moment from 'moment';

export default [{
  title: '序号',
  dataIndex: 'id',
  sorter: true,
  width: 75
}, {
  title: '问题标题',
  dataIndex: 'title'
}, {
  title: '简述',
  dataIndex: 'brief'
}, {
  title: '创建日期',
  dataIndex: 'createdAt',
  sorter: true,
  width: 160,
  render: val => <span style={{whiteSpace: 'nowrap'}}>{moment(val).format('YYYY-MM-DD HH:mm')}</span>,
}, {
  title: '更新日期',
  dataIndex: 'updatedAt',
  sorter: true,
  width: 160,
  render: val => <span style={{whiteSpace: 'nowrap'}}>{moment(val).format('YYYY-MM-DD HH:mm')}</span>,
}];